/**
 * requireJS 依赖配置
 */
requirejs.config({
    baseUrl: BASE_PATH,
    waitSeconds: 5,
    paths: {
        "text": "common/text/text",
        "lodash": "common/lodash/dist/lodash.min",
        "promise": "common/es6-promise/es6-promise.min",
        "jquery": "common/jquery/jquery.min",
        "sb-admin-2": "common/sb-admin-2/js/sb-admin-2.min",
        "metisMenu": "common/metisMenu/metisMenu.min",
        "bootstrap": "common/bootstrap/js/bootstrap.min",
        "toastr": "common/toastr-2.1.1/build/toastr.min",
        "app": "common/app",
        "vue-mask": "common/vue-mask/dist/vueTextMask",
        "vue": "common/vue/vue.min",
        "vuejs": "common/require-vuejs/dist/require-vuejs",
        "vue-resource" : "common/vue-resource/dist/vue-resource.min",
        "vee-validate": "common/vee-validate-2.0.4/dist/vee-validate",
        "vee-validate-cn": "common/vee-validate-2.0.4/dist/locale/zh_TW",
        "mm-tools": 'common/mixmedia-tools/dist/js/mm-tools.min',
        "vue-plupload": 'common/vue-plupload/vue-plupload',
        "moment": 'common/momentjs/moment.min',
        "css": "common/require-css/css",      
        "ckeditor" : "common/ckeditor/ckeditor",
        "ckeditorConfig" : "common/ckeditor/config",
        "sweetalert" : "common/sweetalert2/dist/sweetalert2.min",
        "chart" : "common/chart/Chart.min",
    },
    map: {
        '*': {
            'css': 'common/require-css/css'
        }
    },
    shim: {
        "bootstrap" : {
            deps: ["jquery"]
        },
        "metisMenu" : {
            deps: ["jquery"]
        },
        "sb-admin-2": {
            deps: ["jquery", "bootstrap", "metisMenu"]
        },
        "toastr" : {
            deps: ["css!common/toastr-2.1.1/build/toastr.min.css"]
        },
        "vue-plupload" : {
            deps: ["vue"]
        },
        "ckeditor" : {
            deps :["jquery"],
            exports : "CKEDITOR"
        },
        "sweetalert" : {
            deps: ["css!common/sweetalert2/dist/sweetalert2.min.css"]
        },
        "chart" : {
            desp : ['jquery'],
            exports : "Chart"
        },
        shim: {
            "vue": {"exports": "Vue"}
        }
    }
});